

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class BannerSpace : MonoBehaviour
{
	private Vector2 m_sizeDelta = Vector2.zero;

	[SerializeField]
	private RectTransform m_canvas;

	[SerializeField]
	private List<BannerStrategy> m_bannerStrategies;

	private float m_pixels = 50f;

	private LayoutElement m_layoutElement;

	public float Height { get; private set; }

	private void Awake()
	{
		base.StartCoroutine(this.InitCoroutine()); 
       
		this.m_layoutElement = base.GetComponent<LayoutElement>();
		this.m_pixels = (float)((!MySystemInfo.IsTablet) ? 52 : 92);
	}

	private IEnumerator InitCoroutine()
	{
		yield return null;
		
		this.Height = this.m_pixels / (float)Screen.height * this.m_canvas.rect.height * ScreenToolWrapper.Density;
		this.m_sizeDelta = new Vector2(0f, this.Height);
		this.UpdateVisibility();
	}

	private void OnPurchaseHandler(bool arg1, SubscriptionType arg2)
	{
		this.UpdateVisibility();
	}

	private void UpdateVisibility()
	{
		UnityEngine.Debug.Log("TryUpdateVisibility");
        
	}

	private void OnDestroy()
	{ 
    }
}